package ooday01.demo;


public class StudentTest02 {
    public static void main(String[] args) {
        Student02 zs=new Student02();
        zs.name="张三";
        zs.age=30;
        zs.className="jsd2307";
        zs.stuId="001";
        zs.study();
        zs.sayHi();
        zs.playWith("王五");

        Student02 ls=new Student02("李四",50,"jsd2307","002");
        ls.playWith("张三");
        ls.study();
        ls.sayHi();

        //新建一个学生对象,给所有成员变量赋默认值
        Student02 ww=new Student02();
        ww.sayHi();
        ww.study();
        ww.playWith("李四");
    }
}
